<?php

/**
 * Impress - Open source digital signage
 *
 * @link http://digitalsignage.tk
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 * @category Impress
 * @package Impress
 */

/**
 * Default controller
 *
 * @package Impress
 * @subpackage Controllers
 */

abstract class ADS_DefaultController {
    
    public function __call($name, $arguments) {
        preg_match('/^ADS_([a-zA-Z]+)Controller$/',get_called_class(),$module);
        if(preg_match('/^render([a-zA-Z]+)$/',$name,$extract)){
            ADS_Output::renderOutput($module[1].'/'.lcfirst($extract[1]).'.html');
        }
    }
}
